﻿<Window x:Class="Backup_IOS.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Backup IOS Device" Height="300" Width="600" Loaded="Window_Loaded" Closed="Window_Closed">
    <StackPanel Name="Grid_Settings">
        <GroupBox Header="#1. Settings">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="20*" />
                    <ColumnDefinition Width="2*" />
                    <ColumnDefinition Width="80*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                
                <TextBlock Grid.Row="0" Grid.Column="0" Text="SSH Host" />
                <TextBlock Grid.Row="1" Grid.Column="0" Text="SSH UserID" />
                <TextBlock Grid.Row="2" Grid.Column="0" Text="SSH Password" />
                <TextBlock Grid.Row="3" Grid.Column="0" Text="Local Backup Path" />
                
                <TextBlock Grid.Row="0" Grid.Column="1" Text=":" />
                <TextBlock Grid.Row="1" Grid.Column="1" Text=":" />
                <TextBlock Grid.Row="2" Grid.Column="1" Text=":" />
                <TextBlock Grid.Row="3" Grid.Column="1" Text=":" />
                
                <TextBox Grid.Row="0" Grid.Column="2" Text="{Binding SSH_Host, Mode=TwoWay}" />
                <TextBox Grid.Row="1" Grid.Column="2" Text="{Binding SSH_UserID, Mode=TwoWay}" />
                <TextBox Grid.Row="2" Grid.Column="2" Text="{Binding SSH_Password, Mode=TwoWay}" />
                <Grid Grid.Row="3" Grid.Column="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="90*" />
                        <ColumnDefinition Width="10*" />
                    </Grid.ColumnDefinitions>
                    <TextBox Text="{Binding Local_Backup_Path, Mode=TwoWay}" Grid.Column="0" />   
                    <Button Content="..." Grid.Column="1" />
                </Grid>                
            </Grid>
        </GroupBox>
        <GroupBox Header="#2. Items to Backup/Restore">
            <StackPanel>
                <StackPanel Orientation="Horizontal">
                    <CheckBox Margin="5,5,5,5" Content="Address Book" IsChecked="{Binding Backup_AddressBook, Mode=TwoWay}" />
                    <CheckBox Margin="5,5,5,5" Content="Calendar" IsChecked="{Binding Backup_Calendar, Mode=TwoWay}" />
                    <CheckBox Margin="5,5,5,5" Content="Documents" IsChecked="{Binding Backup_Documents, Mode=TwoWay}" />
                    <CheckBox Margin="5,5,5,5" Content="Photos" IsChecked="{Binding Backup_Photos, Mode=TwoWay}" />
                    <CheckBox Margin="5,5,5,5" Content="SMS" IsChecked="{Binding Backup_SMS, Mode=TwoWay}" />
                    <CheckBox Margin="5,5,5,5" Content="Notes" IsChecked="{Binding Backup_Notes, Mode=TwoWay}" />
                </StackPanel>
            </StackPanel>
        </GroupBox>
        <GroupBox Header="#3. Operation">
            <StackPanel Orientation="Horizontal">
                <Button Margin="5,5,5,5" Content="Backup" Click="OneClick_Backup" />
                <TextBlock Text="  " />
                <Button Margin="5,5,5,5" Content="Restore" Click="OneClick_Restore" />
            </StackPanel>
        </GroupBox>
        <TextBlock Text="Like this? "/>
        <TextBlock Text="Donations are welcome, " />
        <TextBlock Text="Please send them via paypal.com to taykwana@hotmail.com :)" />
    </StackPanel>
</Window>
